from applications.extensions import db
import datetime

class GroupCrontab(db.Model):
    __tablename__='chat_groups_crontabs'
    id = db.Column(db.Integer, primary_key=True, autoincrement=True, comment='ID')
    Gid=db.Column(db.Integer, comment='群id' )
    GroupUserName = db.Column(db.String(200), comment='群id',default='')
    Content=db.Column(db.String(256), comment='回复内容', default='' )
    Sort=db.Column(db.Integer, comment='排序', default='0' )
    MsType=db.Column(db.String( 20 ), comment='类型【TEXT, MAP, CARD, NOTE, SHARING, PICTURE,RECORDING, VOICE, ATTACHMENT, VIDEO, FRIENDS, SYSTEM, MINIPROGRAM】',
                    default='TEXT' )
    # * * * *
    Create_time = db.Column(db.DateTime, default=datetime.datetime.now, comment='创建时间')